package com.zwh.modbus.modbus4j.param;

import lombok.Data;

/**
 * @author hw
 * @className ConnectDeviceParam
 * @Date 2022/2/25 14:46
 */
@Data
public class ConnectDeviceParam {
    /*基本参数*/
    private String serialPort; //串口号
    private String ip; //IP地址
    private Integer port; //端口号
    private Integer baudRate; //波特率
    private Integer stopBit; //停止位
    private Integer dataBit; //数据位
    private Integer checkBit; //校验位
    private Integer collectCycle; //采集周期
    private Integer timeout; //超时时间
    private Boolean isVerify; //crc16校验

    /*高级参数*/
    private String shortByteOrder; //short字节序
    private String intByteOrder; //int字节序
    private String floatByteOrder; //float字节序
    private String doubleByteOrder; //double字节序
    private String reportMode; //上报模式
    private Integer reportCycle; //上报周期
    private String keepMode; //保存模式
    private Integer keepCycle; //保存周期
    private Integer maxKeepNumber; //最大保存条数
}
